package jsptest;


import java.io.*;
import java.net.*;

public class readertest {
	public readertest(){
		}
	public String callValue(String strURL){
		URL myURL;
		InputStream is;
		BufferedReader br;
		String data;
		StringBuffer sb1 = new StringBuffer();
		
		try{
			myURL = new URL(strURL);
			
			is=myURL.openStream();
			br = new BufferedReader(new InputStreamReader(is));
			
			while((data=br.readLine())!=null){
				sb1.append(data);
			}}
			catch(Exception e){
				e.printStackTrace();
				System.out.println("url="+strURL);
				System.out.println("ViewUR->>");
			}
			return sb1.toString().trim();
		}
	
}
